<div >
<ol class="breadcrumb">
		您所在的位置：
    	<li><a href="#/index">首页</a></li>
    	<li class="active">入库对账</li>
	</ol>
	<div style="height:60px">
		<ul id="myTab" class="nav nav-tabs">
			
			<li ng-class="{'active':rkdz}" ng-click="rkdzClick()" ><a data-toggle="tab">入库对账</a></li>
			<!--<li ng-class="{'active':nsdz}" ng-click="nsdzClick()"><a data-toggle="tab">纳税对账</a></li>-->
		</ul>
	</div>
<div id="myTabContent" class="tab-content" >
	<div  ng-if="rkdz" id="rkdz" ng-controller="checkController">
		<div>
			<form class="form-inline" role="form" style="width:100%;">
				
				<div class="form-group ns" style="width:26%">
					<label for="firstname" class="control-label">纳税人识别号：</label>
					<input type="text" class="form-control" ng-model="$parent.nsrsbh" maxlength="30" placeholder="纳税人识别号" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')">
				</div>
				
    			<!---->
				<div class="form-group ns" style="width:26%">
					<label for="firstname" class="control-label">应征凭证号：</label>
					<input type="text" class="form-control"  ng-model="$parent.yzskpzh" maxlength="40" placeholder="应征税款凭证号" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')">
				</div>
				<div class="form-group ns" style="width:24%">
					<label for="firstname" class="control-label">纳税人名称：</label>
					<input type="text" class="form-control" style="width:150px" ng-model="$parent.nsrname" maxlength="20" placeholder="纳税人名称" >
				</div>	
				<div class="form-group ns" style="width:24%;line-height: 30px;">
					<label for="firstname" class="control-label">税务机关：</label>
					<a href="" id="authority" ng-click="zTree()" data-toggle="modal" data-target="#zTreeModal">全部</a>
					<input type="hidden" id="taxCode"  ng-model="$parent.taxAuthorityCode" class="form-control" >
					<input type="hidden" id="taxAuthCode"  class="form-control" >
				</div>
				<div class="form-group ns" style="width:26%">
					 <label for="firstname" class="control-label">开始时间：&emsp;</label>
					<div class='input-group date' >  	
                		<input type='text' class="form-control" id="startTime" maxlength="30" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="缴纳开始时间"/>  
                		<span class="input-group-addon">  
                    		<span class="glyphicon glyphicon-calendar"></span>  
                		</span>  
            		</div>  
				</div>
				<div class="form-group ns" style="width:26%">
					<label for="firstname" class="control-label">结束时间：&emsp;</label>
					<div class='input-group date' >  
					<input type="text" class="form-control"  id="endTime" maxlength="30"  onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" placeholder="缴纳结束时间">
						<span class="input-group-addon">  
                    		<span class="glyphicon glyphicon-calendar"></span>  
                		</span>  
            		</div>  
				</div>
				<div class="form-group ns" style="width:24%">
					<label for="firstname"  class="control-label">支付方式：</label>
					<select class="form-control" ng-model="$parent.payWayEn"  style="height: 35px;">
						<option value="">全部</option>
						<option value="weixin">微信</option>
						<option value="alipay">支付宝</option>
						<option value="wangyin">网银</option>
					</select>
				</div>
				<div class="form-group ns" style="width:20%">
					<label for="firstname"  class="control-label">缴税平台：</label>
					<select class="form-control" ng-model="$parent.payPlatformId"  style="height: 35px;">
						<option value="">全部</option>
						<option value="1">网上办税平台</option>
						<option value="2">办税大厅</option>
						<option value="3">业务待办点</option>
						<option value="4">自助终端</option>
					</select>
				</div>
				<div class="row" style="text-align: center;margin-top: 15px;">
					
					<button  type="button" ng-click="rukulist()" class="btn btn-primary nsbtn">
       					<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
        				<i class="icon-search"></i>查询
    				</button>
    				
    			</div>
			</form>
			<div class="check_tj" style="margin-top: 0px;">
				<span class="details_titel" >已入库的数据统计</span>
				<div class="details">
         			<span ></span>
     			</div>
				<!--<table> 
					<tr> 
						<td></td> 
						<td>纳税总额</td> 
						<td>入库金额</td> 
					</tr> 
					<tr> 
						<td>第三方支付</td> 
						<td>{{rktjdata.lhNsze}}元</td> 
						<td>{{rktjdata.rkze}}元</td> 
					</tr>
					<tr> 
						<td>已入库</td> 
						<td>{{rktjdata.xbhNsze}}元</td> 
						<td>{{rktjdata.rkze}}元</td> 
					</tr> 
					<tr> 
						<td></td> 
						<td>
							<span ng-if="rktjdata.lhNsze==rktjdata.xbhNsze" class="glyphicon glyphicon-ok ok-green"></span>
							<span ng-if="rktjdata.lhNsze!=rktjdata.xbhNsze" class="glyphicon glyphicon-remove ok-red"></span>						
						</td> 
						<td><span class="glyphicon glyphicon-ok ok-green"></span></td> 
					</tr> 
				</table> -->
				<table class="table table-bordered">
					<thead>
						<tr>
							<th>总笔数</th>
							<th>异常笔数</th>
							<th>已入库缴纳总额</th>
							<th>入库总额</th>
							<th>微信支付数量</th>
							<th>微信支付总额</th>
							<th>支付宝支付数量</th>
							<th>支付宝支付总额</th>
							<th>网银支付数量</th>
							<th>网银支付总额</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>{{rktjdata.total}}</td>
							<td>{{rktjdata.unNormal}}</td>
							<td>{{rktjdata.paymentAmount}}</td>
							<td>{{rktjdata.storageTax}}</td>
							<td>{{rktjdata.weixinCount}}</td>
							<td>{{rktjdata.weixinSum}}</td>
							<td>{{rktjdata.alipayCount}}</td>
							<td>{{rktjdata.alipaySum}}</td>
							<td>{{rktjdata.netBankCount}}</td>
							<td>{{rktjdata.netBankSum}}</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
		<div >
			<div >
					<span class="details_titel">查询结果</span>
					<div class="details">
         				<span ></span>
     				</div>
     				
     			<div class="ns-list-box" ng-repeat="rkdata in rklist">    				
     				<div class="list-box-left" style="width: 26%;">
     					<h4 class="ns-list-box-title" style="font-size: 14px;">纳税人：{{rkdata.taxPayerName}}</h4>
     					<span>纳税人识别号：{{rkdata.taxPayerCode}}</span>
     				</div>
     				<div class="list-box-center" style="line-height:0px;font-size:14px;">
     					<h4 class="ns-list-box-title" style="font-size: 14px;padding: 10px 0px;height: 45px;">
     						纳税额：{{rkdata.paymentAmount}}元
     					</h4>
     					<span>税款种类：{{rkdata.taxType | taxType}}</span>
     				</div>
     				
     				<div class="list-box-center" style="line-height:0px;font-size:14px;width:20%;">
     					<h4 class="ns-list-box-title" style="font-size: 14px;padding: 10px 0px;height: 45px;">
     						税务机关名称：{{rkdata.officeName}}
     					</h4>
     					<span>税款所属期起：{{rkdata.taxStart | date:'yyyy-MM-dd'}}</span>
     				</div>
     				<div class="list-box-right" style="width: 23%;">
     					<h5 class="ns-list-box-title">对账情况：
     						<span ng-if="rkdata.schedule==5" style="padding: 0px;">
     							<span ng-if="rkdata.storageTax==null" style="padding: 0px;">
     								<span style="color:#DF8505">等待销号</span>
     							</span>
     							<span ng-if="rkdata.storageTax!=null" style="padding: 0px;">
     								<span ng-if="rkdata.shoudAmount==rkdata.storageTax" class="ok-green">正常</span>
     								<span ng-if="rkdata.shoudAmount!=rkdata.storageTax" class="ok-red">异常</span>
     							</span>
     						</span>
     					</h5>
     					<span>入库时间：{{rkdata.storageTime| date:'yyyy-MM-dd hh:mm:ss'}}</span>
     				</div>
     				<div class="list-box-button" >
     					<a href="" ng-click="selectRuKuDzMingxi(rkdata.id)" style='color: #fff;'  class="btn btn-primary">
       						入库详情
    					</a>
     				</div>
     			</div>
     			
     			
			</div>
			<pagination count="count1"  page="page1" pagesize="pagesize1" refresh="rukulist()"></pagination>
		</div>
		
	</div>
</div>
</div>
<script>
	
</script>
<!-- 模态框（Modal） -->
<div class="modal fade" id="zTreeModal" tabindex="-1" role="dialog" aria-labelledby="zTreeModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">税务机关选择</h4>
            </div>
            <div class="modal-body" style="height:400px;overflow: scroll;">
            	<ul id="treeDemo" class="ztree"></ul>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" ng-click="zTreeclick()">确定</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>